from sqlalchemy.orm import Session

from apis_module.model.group_model import GroupModel


class GroupDao:
    @classmethod
    def get_group_list(cls, db: Session):
        results = db.query(GroupModel) \
            .filter(GroupModel.is_used).distinct().all()

        return results
